function main(){
    debugger
    const self = this; // 作用域
    const tableComp = self.$$element("table_bqb9q2"); // 获取表格元素

    // 获取当前表格选中的行
    const { selectedRows } = tableComp.$$getSelection();

    console.log(selectedRows);
    let btnElement = self.$children[0];

    const litigants = selectedRows.map(item => {
        const selector = "tr[data-row-key='" + item.id.value + "']";
        const rowElements = tableComp.$el.querySelectorAll(selector);

        const btnElement = rowElements.length > 1 ? rowElements[1].querySelector("span").__vue__ : null;

        btnElement.buttonStatus = 'DISABLE'

        return {
            unitId: item.id.value,
            litilitigantId: item.card_code.value,
            litigantName: item.litigant_name.value,
            btnElement: btnElement
        };
    });

    // 不重复的主体信息
    const newLitigants = litigants.filter(litigant => {
        return !window.unitLitigant.some(existingLitigant => existingLitigant.litilitigantId === litigant.litilitigantId);
    });

    window.unitLitigant.push(...newLitigants);

    let tableListEle = self.$$("table_er5mbj");

    tableComp.$$refreshData();

    tableListEle.$$refreshData();

}
